package com.zide.cms.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zide.cms.domain.po.CmsBanner;
import com.zide.cms.domain.vo.search.CmsBannerSearchVO;
import com.zide.framework.config.mybatisplus.XianYingMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import com.zide.common.core.domain.PageResult;

/**
 * 轮播图管理Mapper接口
 * 
 * @author zide
 * @date 2024-05-06
 */
@Mapper
public interface CmsBannerMapper extends XianYingMapperPlus<CmsBanner> {

    default PageResult<CmsBanner> selectPage(CmsBannerSearchVO searchVO) {
        return selectPage(searchVO, new LambdaQueryWrapper<CmsBanner>().orderByDesc(CmsBanner::getId));
    }
}
